home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1999 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'KpLib.pas' rev: 5.00
-
- #ifndef KpLibHPP
- #define KpLibHPP
-
- #pragma delphiheader begin
- #pragma option push -w-
- #pragma option push -Vx
- #include <kpZcnst.hpp> // Pascal unit
- #include <kpZipObj.hpp> // Pascal unit
- #include <kpMatch.hpp> // Pascal unit
- #include <Classes.hpp> // Pascal unit
- #include <FileCtrl.hpp> // Pascal unit
- #include <SysUtils.hpp> // Pascal unit
- #include <kpSStrm.hpp> // Pascal unit
- #include <Windows.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Kplib
- {
- //-- type declarations -------------------------------------------------------
- typedef Byte *BYTEPTR;
-
- typedef Sysutils::TSearchRec *PSearchRec;
-
- typedef double Comp;
-
- class DELPHICLASS TLFNFileStream;
- class PASCALIMPLEMENTATION TLFNFileStream : public Kpsstrm::TS_BufferStream
- {
- typedef Kpsstrm::TS_BufferStream inherited;
-
- public:
- Classes::TFileStream* theFile;
- int __fastcall GetHandle(void);
- __fastcall TLFNFileStream(const AnsiString FileName, Word Mode, bool FlushOut, int BufSize);
- __fastcall virtual ~TLFNFileStream(void);
- __property int Handle = {read=GetHandle, nodefault};
- public:
- #pragma option push -w-inl
- /* TS_BufferStream.Create */ inline __fastcall virtual TLFNFileStream(Classes::TStream* Stream, int
- BufferSize) : Kpsstrm::TS_BufferStream(Stream, BufferSize) { }
- #pragma option pop
-
- };
-
-
- #pragma option push -b-
- enum TConversionOperation { SHORTEN, LENGTHEN };
- #pragma option pop
-
- class DELPHICLASS TSearchData;
- class PASCALIMPLEMENTATION TSearchData : public System::TObject
- {
- typedef System::TObject inherited;
-
- public:
- AnsiString Directory;
- AnsiString Pattern;
- int SearchResult;
- Sysutils::TSearchRec SearchRec;
- bool NoFiles;
- void __fastcall Next(void);
- __fastcall TSearchData(AnsiString Path, AnsiString MatchPattern);
- __fastcall virtual ~TSearchData(void);
- };
-
-
- class DELPHICLASS TDirSearch;
- class PASCALIMPLEMENTATION TDirSearch : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- TSearchData* FDirStack[21];
- int FCurrentLevel;
- AnsiString FPattern;
- bool FRecurse;
- Classes::TStrings* FWildDirStack;
- int FNumWildDirs;
- int FWildDirID;
- bool __fastcall IsChildDir(const Sysutils::TSearchRec &SR);
- bool __fastcall IsDir(const Sysutils::TSearchRec &SR);
-
- public:
- __fastcall TDirSearch(const AnsiString StartingDir, const AnsiString Pattern, bool RecurseDirs);
- __fastcall virtual ~TDirSearch(void);
- AnsiString __fastcall NextFile(Sysutils::TSearchRec &SR);
- __property bool Recurse = {read=FRecurse, write=FRecurse, default=0};
- };
-
-
- //-- var, const, procedure ---------------------------------------------------
- static const char WILDCARD_RECURSE = '\x3e';
- static const char WILDCARD_NORECURSE = '\x7c';
- extern PACKAGE __int64 __fastcall kpmin(__int64 a, __int64 b);
- extern PACKAGE __int64 __fastcall kpmax(__int64 a, __int64 b);
- extern PACKAGE int __fastcall CRate(int uc, int c);
- extern PACKAGE int __fastcall CBigRate(double uc, double c);
- extern PACKAGE char * __fastcall DOSToUnixFilename(char * fn);
- extern PACKAGE char * __fastcall UnixToDOSFilename(char * fn);
- extern PACKAGE AnsiString __fastcall RightStr(AnsiString str, int count);
- extern PACKAGE AnsiString __fastcall LeftStr(AnsiString str, int count);
- extern PACKAGE bool __fastcall IsWildCard(AnsiString fname);
- extern PACKAGE int __fastcall GoodTimeStamp(int theTimeStamp);
- extern PACKAGE System::TDateTime __fastcall FileDate(AnsiString fname);
- extern PACKAGE void __fastcall ForceDirs(AnsiString Dir);
- extern PACKAGE bool __fastcall File_Exists(const AnsiString FileName);
- extern PACKAGE bool __fastcall DirExists(AnsiString Dir);
- extern PACKAGE void __fastcall GetDirectory(Byte D, AnsiString &S);
- extern PACKAGE void __fastcall ChDirectory(const AnsiString S);
- extern PACKAGE bool __fastcall DoRenameCopy(const AnsiString FromFile, const AnsiString ToFile);
- extern PACKAGE void __fastcall FileCopy(const AnsiString FromFile, const AnsiString ToFile);
- extern PACKAGE AnsiString __fastcall PCharToStr(char * CStr);
- extern PACKAGE char * __fastcall StrToPChar(AnsiString Str);
- extern PACKAGE BOOL __fastcall SetVolLabel(AnsiString Disk, AnsiString NewLabel);
- extern PACKAGE AnsiString __fastcall GetVolumeLabel(AnsiString Disk);
- extern PACKAGE AnsiString __fastcall TempFileName(AnsiString Pathname);
- extern PACKAGE void __fastcall OemFilter(AnsiString &fname);
- extern PACKAGE void __fastcall Assert(bool Value, AnsiString Msg);
- extern PACKAGE bool __fastcall BlockCompare(const void *Buf1, const void *Buf2, int Count);
- extern PACKAGE char * __fastcall StringAsPChar(AnsiString &S);
- extern PACKAGE AnsiString __fastcall LFN_ConvertLFName(AnsiString LName, TConversionOperation ConvertOperation
- );
-
- } /* namespace Kplib */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Kplib;
- #endif
- #pragma option pop // -w-
- #pragma option pop // -Vx
-
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // KpLib
-